﻿@model ReportModel
@{
    ViewData["Title"] = $"Report {Model.Report.Id}";
}

<h2 class="mt-2">@ViewData["Title"]</h2>

<div class="row">
    <div class="col-lg-4">
        <table class="table table-sm table-striped">
            <tr>
                <th>ID</th>
                <td>@Model.Report.Id</td>
            </tr>
            <tr>
                <th>Percent</th>
                <td>@($"{Model.Report.Percent:F2}%")</td>
            </tr>
            <tr>
                <th>A</th>
                <td>@($"{Model.Report.PercentA:F2}%") - <a asp-action="Submission" asp-route-id="@Model.Report.SubmissionA">@Model.A.Sid</a></td>
            </tr>
            <tr>
                <th>B</th>
                <td>@($"{Model.Report.PercentB:F2}%") - <a asp-action="Submission" asp-route-id="@Model.Report.SubmissionB">@Model.B.Sid</a></td>
            </tr>
            <tr>
                <th>Shared</th>
                <td>@(Model.Report.Shared ? "Yes" : "No") (<a data-toggle="ajaxWindow" data-target="toggleShared" asp-action="ToggleShared" asp-route-rid="@Model.Report.Id">toggle</a>)</td>
            </tr>
            <tr>
                <th>Match</th>
                <td>@Model.Report.TokensMatched total, @Model.Report.BiggestMatch consecutive longest</td>
            </tr>
            <tr>
                <th>Justification</th>
                <td>
                    @Model.Report.Justification
                </td>
            </tr>
            <tr>
                <th>
                    Mark as
                </th>
                <td>
                    <form method="post" class="d-inline-block">
                        <button title="I'm not sure whether this two solution is copied" class="btn btn-link d-inline p-0 b-0" asp-action="Justificate" asp-route-status="0">Unspecified</button>
                        /
                        <button title="I'm sure this two solution is not copied" class="btn btn-link d-inline p-0 b-0" asp-action="Justificate" asp-route-status="1">Ignored</button>
                        /
                        <button title="I'm sure this two solution is copied" class="btn btn-link d-inline p-0 b-0" asp-action="Justificate" asp-route-status="2">Claimed</button>
                    </form>
                </td>
            </tr>
        </table>
    </div>
</div>

<vc:plagiarism-report model="Model" />
